import { createApp } from 'vue'
// import './style.css'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import request from './utils/request'
import storage from './utils/storage'
import api from './api'//index.js省略
// 导入所有图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

console.log("环境变量=>", import.meta.env);

const app = createApp(App);
// 进行全局注册图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

// 全局挂载
app.config.globalProperties.$request = request;
app.config.globalProperties.$storage = storage;
app.config.globalProperties.$api = api;
// 设置整体风格大小 size: 'small'
app.use(router).use(store).use(ElementPlus, { size: 'small' }).mount('#app')